package cn.tedu.cgb2104boot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    //	@RequestMapping("hi")//只匹配一个路径
    @RequestMapping({"hi","hello/hi"})//匹配两种路径/hi或者/hello/hi
    public String hi() {
        return "hi springboot!";
    }

}
